extends "../calxmx_1_2/calxmx_1_2.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "青龙"                   # 角色的名称
	lv = 4
	addSkillTxt("[color=#FFFF00][轰顶青雷][/color][color=#FFCC22]使用灵兽之力汇聚雷电攻击单体，造成200%木系魔法伤害并<麻痹>目标5秒并让目标携带一个雷电球\n3秒后雷电球爆炸，造成携带者30%当前体力的木系特效伤害[CD:18][/color]")
	addCdSkill("hdql",18)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "hdql":
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("轰顶青雷", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		typeHurtCha(aiCha,att.mgiAtk*2.1,Chara.HurtType.MGI,Chara.AtkType.SKILL)
		yield(reTimer(3),"timeout")
		typeHurtCha(aiCha,att.hp*0.3,Chara.HurtType.MGI,Chara.AtkType.EFF)